home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC User 2002 April
/
Disc 2
/
PCUSER0402D2.iso
/
software
/
utils
/
files
/
wincron.exe
/
data1.cab
/
Sample_Scripts
/
Include
/
assert.h
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
2001-10-20
|
368 b
|
23 lines
#ifndef _ASSERTH
#define _ASSERTH
#pragma push_safeptr
void _Assert(char *msg);
#undef assert
#ifdef NDEBUG
#define assert(test)
#else
#define __Str(x) __Val(x)
#define __Val(x) #x
#define assert(test) ((test) ? (void) 0 : _Assert("In "__FILE__ ", line " __Str(__LINE__) ": " #test ))
#endif
#pragma pop_ptr
#endif /* end _ASSERTH */